package day04;

import java.util.Scanner;

public class Demo06 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入第一个整数");
        int a = scanner.nextInt();
        System.out.println("请输入第二个整数");
        int b = scanner.nextInt();
        System.out.println("请输入第三个整数");
        int c = scanner.nextInt();
        // a b c
        int tmp = 0;
        if (a>b){//先把a拿出来和b比较，大的就往后移动
            tmp = a;
            a = b;
            b = tmp;
        }
        if (a>c){
            tmp = a;
            a = c;
            c = tmp;
        }
        if (b>c){
            tmp = b;
            b = c;
            c = tmp;
        }
        System.out.println(a+","+b+","+c);
    }
}
